

            function addArduinoCod (Blockly) {
            
                        

                        
        Blockly.Arduino['EXT_SLIDING_VARISTOR_MODULES_BLOCK_1607428818590'] = function(block)
        {
            let pin = this.getFieldValue('pin');
          
            Blockly.Arduino.definitions_['include_EXT_SLIDING_VARISTOR_MODULES_BLOCK_1607428818590'] = ``;
            Blockly.Arduino.definitions_['define_EXT_SLIDING_VARISTOR_MODULES_BLOCK_1607428818590'] = `float i=0,data;\r\nint j = 0;\r\nint analogPin${pin} = ${pin};\r\n\r\nfloat Read_Slide () {\r\n data=analogRead(analogPin${pin});\r\n i=data/1023;\r\n j=(1-i)*100;\r\n return j;\r\n}`;
            Blockly.Arduino.definitions_['setup_EXT_SLIDING_VARISTOR_MODULES_BLOCK_1607428818590'] = `pinMode(analogPin${pin}, INPUT);`;
             return  [`Read_Slide()`];
        }
                    
            return Blockly;
            }

            module.exports = addArduinoCod ;

        